package com.jic.point.mapper;

import com.jic.point.model.entity.PublMemberLog;
import com.jic.point.rest.response.PublMemberLogs;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface PublMemberLogMapper {
	/**
	 * PUBL_MEMBER_LOG插入数据
	 * @param publMemberLog 入参实体类
	 */
	int insert (PublMemberLog publMemberLog);

	/**
	 * PUBL_MEMBER_LOG插入数据
	 * @param publMemberLog 入参实体类
	 */
	int insertSelective (PublMemberLog publMemberLog);

	/**
	 * PUBL_MEMBER_LOG根据表对象数据修改数据
	 * @param publMemberLog 入参实体类
	 */
	int updateByPrimaryKey (PublMemberLog publMemberLog);

	/**
	 * PUBL_MEMBER_LOG根据表对象数据修改数据
	 * @param publMemberLog 入参实体类
	 */
	int updateByPrimaryKeySelective (PublMemberLog publMemberLog);

	/**
	 * PUBL_MEMBER_LOG根据id删除数据
	 * @param publMemberLog 入参实体类
	 */
	int deleteByPrimaryKey (PublMemberLog publMemberLog);

	/**
	 * PUBL_MEMBER_LOG根据主键查询数据
	 * @param publMemberLog 入参实体类
	 */
	PublMemberLog selectByPrimaryKey (PublMemberLog publMemberLog);

	/**
	 * PUBL_MEMBER_LOG根据主键查询数据
	 * @param publMemberLog 入参实体类
	 */
	List<PublMemberLog> listPageBySelective (PublMemberLog publMemberLog);

	/**
	 *
	 * @param publMemberLog
	 * @return
	 */
	List<PublMemberLogs> listPage (PublMemberLogs publMemberLog);


	/**
	 * PUBL_MEMBER_LOG查询数据
	 * @param publMemberLog 入参实体类
	 */
	List<PublMemberLog>  selectBySelective (PublMemberLog publMemberLog);

	/**
	 * 定时修改预警状态
	 * @return
	 */
	List<PublMemberLog> getWarning();

	List<PublMemberLog> listPageBySelectiveTime(@Param("log") PublMemberLog request,@Param("start") Date startTiem,@Param("finish") Date finishTime);
}
